/*
 * Copyright 2011 derek.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.aocore.awesomo;

import com.aocore.d2data.NPCCode;
import com.aocore.d2data.NPCMode;

/**
 *
 * @author derek
 */
public class Npc
{
    private int uid;
    private NPCCode id;
    private NPCMode mode;
    private int x;
    private int y;
    private byte life;

    public Npc(int uid)
    {
        this.uid = uid;
    }

    public int getUid()
    {
        return uid;
    }

    public boolean isAlive()
    {
        return life > 0;
    }

    public NPCCode getId()
    {
        return id;
    }

    public void setId(NPCCode id)
    {
        this.id = id;
    }

    public NPCMode getMode()
    {
        return mode;
    }

    public void setMode(NPCMode mode)
    {
        this.mode = mode;
    }

    public int getX()
    {
        return x;
    }

    public void setX(int x)
    {
        this.x = x;
    }

    public int getY()
    {
        return y;
    }

    public void setY(int y)
    {
        this.y = y;
    }

    public byte getLife()
    {
        return life;
    }

    public void setLife(byte life)
    {
        this.life = life;
    }
}
